FragmentFactory

Interface used to control the instantiation of Fragment instances. Implementations can be registered with a FragmentManager via setFragmentFactory.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun instantiate(@NonNull classLoader: ClassLoader, @NonNull className: String): Fragment
Create a new instance of a Fragment with the given class name.
Link copied to clipboard
open fun loadFragmentClass(@NonNull classLoader: ClassLoader, @NonNull className: String): Class<out Fragment>
Parse a Fragment Class from the given class name.